package com.hna.eking.iBatis;

import java.util.List;

import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.springframework.transaction.annotation.Transactional;

@Transactional

public interface TableInfoImp {
	@Select("select * from FileForTableInfo where Table_Name = #{TableName}")
	public List<TableInfoMapper> getByTableName(String TableName);
	
	@Insert("insert into FileForTableInfo values(#{Table_Name}, #{File_Path}, #{Table_ALIAS}, #{File_Seq})")
	public int InsertTableInfo(TableInfoMapper TableInfo);	
	
	@Delete("delete from FileForTableInfo where Table_Name = #{TableName}")
	public int DeleteTableInfo(String TableName);
}
